package com.patentbackend.patentmanage.repository;

import com.patentbackend.patentmanage.entity.Slider;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SliderRepository extends JpaRepository<Slider, Long> {
    List<Slider> findByEnabledOrderBySortOrderAsc(boolean enabled);
}